﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PCRequest.aspx.cs" Inherits="WMS6.Web.Inventory.PCRequest" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>PCRequest</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }        
        
//        function newHold()
//        {
//            var from = document.getElementById("hdnFrom").value;
//            window.location.href = "InvHold.aspx?from="+from;
//            return false;
//        }
        //弹出窗口选择货主
        function selectOwner(id) {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=' + escape(id), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") 
            {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;           
                } 
               
            }
        function Owner()
        {
            if (document.getElementById('txtOwnerEnd').value.length == 0) {
                document.getElementById('txtOwnerEnd').value = document.getElementById('txtOwnerStart').value;
            }
        }
        //弹出窗口选择货品
        function selectSku(id, ownerID) {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=' + escape(id) + '&OwnerID=' + escape(document.getElementById(ownerID).value) + '&Type=1', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {

                rtnValue = rtnValue.split('@_@');
                document.getElementById(id).focus();               
                document.getElementById(id).value = rtnValue[0];
                document.getElementById(ownerID).value = rtnValue[1];
             }
        }
        function Sku()
        {
            if (document.getElementById('txtSkuEnd').value.length == 0) {
                document.getElementById('txtSkuEnd').value =  document.getElementById('txtSkuStart').value; 
            }
            if (document.getElementById('txtOwnerEnd').value.length == 0) {
                document.getElementById('txtOwnerEnd').value = document.getElementById('txtOwnerStart').value;
            }               
        }
        //弹出窗口选择货位
        function selectLocation(id) {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=' + escape(id.toString()), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;
            }
        }
        function Location()
        {  
            if (document.getElementById('txtLocEnd').value.length == 0) {
                document.getElementById('txtLocEnd').value =   document.getElementById('txtLocStart').value;
            }      
        }
        //弹出窗口选择储区
        function selectZone(id) {
            var rtnValue = popModalWindow('../Configuration/ZoneQuery.aspx?action=' + escape(id), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;               
            }
        }
        function Zone()
        {    
            if (document.getElementById('txtZoneIDEnd').value.length == 0) {
                document.getElementById('txtZoneIDEnd').value =   document.getElementById('txtZoneIDStart').value;
            }                 
        }
        function selectArea(id) {
            var rtnValue = popModalWindow('../Configuration/AreaQuery.aspx?action=' + escape(id), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById(id).focus();
                document.getElementById(id).value = rtnValue;
                if (id != "txtAreaIDEnd") {
                    if (document.getElementById('txtAreaIDEnd').value.length == 0) {
                        document.getElementById('txtAreaIDEnd').value = rtnValue;
                    }
                } 
            }
        }
        function Area()
        { 
            if (document.getElementById('txtAreaIDEnd').value.length == 0) {
                document.getElementById('txtAreaIDEnd').value = document.getElementById('txtAreaIDStart').value;
            }
        }
        //显示 报表 DIV
        function showReport() {
            var pos = getElementPos("htmlbtnReport");
            document.getElementById("reportDiv").style.top = pos.y + 17;
            document.getElementById("reportDiv").style.left = pos.x;
            document.getElementById("hiddenReportFlag").value = '1';
        }
        function showAction() {
            var pos = getElementPos("btnAction");
            document.getElementById("actionDiv").style.top = pos.y + 17;
            document.getElementById("actionDiv").style.left = pos.x;
            document.getElementById("hiddenFlag").value = '1';
        }

        function hiddenDiv() {
            var flag = document.getElementById("hiddenFlag").value
            if (flag == "1") {
                document.getElementById("actionDiv").style.display = "block";
                document.getElementById("hiddenFlag").value = '0';
            }
            else {
                document.getElementById("actionDiv").style.display = "none";
            }
        }
        //隐藏 报表 DIV
        function hiddenReportDiv() {
            var flag = document.getElementById("hiddenReportFlag").value
            if (flag == "1") {
                document.getElementById("reportDiv").style.display = "block";
                document.getElementById("hiddenReportFlag").value = '0';
            }
            else {
                document.getElementById("reportDiv").style.display = "none";
            }
        }
        //弹出 打印 物理盘点 初盘工作单 的窗口
        function popPrintPc() {
            var PhysicalRequestID = document.getElementById("txtPhysicalRequestID").value;
            var ShowSystemQty = document.getElementById("chbShowSystemQty").checked;
            var OnlyNonEmptyLoc = document.getElementById('chbOnlyNonEmptyLoc').checked;
            window.open('../Common/PrintReport.aspx?rtype=PCMAINTENANCE&PhysicalRequestID=' + escape(PhysicalRequestID) + '&ShowSystemQty=' + escape(ShowSystemQty) + '&OnlyNonEmptyLoc=' + escape(OnlyNonEmptyLoc), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
            window.location.href = "PcRequest.aspx?ID=" + PhysicalRequestID;
        }
		
		function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
		
    </script>

</head>
<body>
    <form id="F5541" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="物理盘点申请" 
                            meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            AccessKey="b" OnClick="btnGoBack_Click"  />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" Enabled="False"
                        AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>" Enabled="False"
                           OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"     OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <input id="btnAction" type="button" value="<%$Resources:ButtonResource,btnAction%>" runat="server" class="button" onclick="showAction();return false;" />
                        <%--<asp:Button ID="btnInputPO" runat="server" Text="导入" style="display:none" onclick="showAction();" onclick="showReport();"
                                onclick="btnInputPO_Click" />      --%>
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,htmlbtnReport%>" class="button"
                            onclick="showReport();return false;" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                            meta:resourcekey="one2">&nbsp;明细&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="360px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblPhysicalRequestID" runat="server" CssClass="label" 
                                        Text="申请编号" meta:resourcekey="lblPhysicalRequestID"></asp:Label><font
                                        class="must_input">*</font>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                        meta:resourcekey="lblStatus"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtPhysicalRequestID" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtPhysicalRequestID"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                        Enabled="False" meta:resourcekey="ddlStatus">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="描述" 
                                        meta:resourcekey="lblDescr"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox" 
                                        meta:resourcekey="txtDescr"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblStartingTagNo" runat="server" CssClass="label" Text="开始标签" 
                                        meta:resourcekey="lblStartingTagNo"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblEndingTagNo" runat="server" CssClass="label" Text="结束标签" 
                                        meta:resourcekey="lblEndingTagNo"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtStartingTagNo" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtStartingTagNo"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtEndingTagNo" runat="server" Enabled="False" 
                                        CssClass="textbox" meta:resourcekey="txtEndingTagNo"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblPlanStartTime" runat="server" CssClass="label" Text="开始时间" 
                                        meta:resourcekey="lblPlanStartTime"></asp:Label><font
                                        class="must_input">*</font>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblPlanEndTime" runat="server" CssClass="label" Text="结束时间" 
                                        meta:resourcekey="lblPlanEndTime"></asp:Label><font
                                        class="must_input">*</font>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtPlanStartTime" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtPlanStartTime"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtPlanStartTime)" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtPlanEndTime" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtPlanEndTime"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtPlanEndTime)" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblStart" runat="server" CssClass="label" Text="从" 
                                        meta:resourcekey="lblStart"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblEnd" runat="server" CssClass="label" Text="至" 
                                        meta:resourcekey="lblEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblOwnerStart" runat="server" CssClass="label" Text="货主代码" 
                                        meta:resourcekey="lblOwnerStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblOwnerEnd" runat="server" CssClass="label" Text="货主代码" 
                                        meta:resourcekey="lblOwnerEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtOwnerStart" runat="server" CssClass="textbox" 
                                        onblur='Owner();' meta:resourcekey="txtOwnerStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item"
                                        class="img" onclick="selectOwner('txtOwnerStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtOwnerEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtOwnerEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img1" runat="server" alt="select one item"
                                        class="img" onclick="selectOwner('txtOwnerEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblSkuStart" runat="server" CssClass="label" Text="货品代码" 
                                        meta:resourcekey="lblSkuStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblSkuEnd" runat="server" CssClass="label" Text="货品代码" 
                                        meta:resourcekey="lblSkuEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtSkuStart" runat="server" CssClass="textbox" onblur='Sku();' 
                                        meta:resourcekey="txtSkuStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtSkuStart','txtOwnerStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtSkuEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtSkuEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtSkuEnd','txtOwnerEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblLocStart" runat="server" CssClass="label" Text="货位" 
                                        meta:resourcekey="lblLocStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblLocEnd" runat="server" CssClass="label" Text="货位" 
                                        meta:resourcekey="lblLocEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocStart" runat="server" CssClass="textbox" 
                                        onblur='Location();' meta:resourcekey="txtLocStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="imgPutawayLoc" runat="server" alt="select one item"
                                        class="img" onclick="selectLocation('txtLocStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtLocEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img2" runat="server" alt="select one item"
                                        class="img" onclick="selectLocation('txtLocEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblLocLevelStart" runat="server" CssClass="label" Text="货位层级" 
                                        meta:resourcekey="lblLocLevelStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblLocLevelEnd" runat="server" CssClass="label" Text="货位层级" 
                                        meta:resourcekey="lblLocLevelEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocLevelStart" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtLocLevelStart"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtLocLevelEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtLocLevelEnd"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblZoneIDStart" runat="server" CssClass="label" Text="储区" 
                                        meta:resourcekey="lblZoneIDStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblZoneIDEnd" runat="server" CssClass="label" Text="储区" 
                                        meta:resourcekey="lblZoneIDEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtZoneIDStart" runat="server" CssClass="textbox" 
                                        onblur='Zone();' meta:resourcekey="txtZoneIDStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="imgZoneID" runat="server" alt="select one item"
                                        class="img" onclick="selectZone('txtZoneIDStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtZoneIDEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtZoneIDEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img3" runat="server" alt="select one item"
                                        class="img" onclick="selectZone('txtZoneIDEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblAreaIDStart" runat="server" CssClass="label" Text="区域" 
                                        meta:resourcekey="lblAreaIDStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblAreaIDEnd" runat="server" CssClass="label" Text="区域" 
                                        meta:resourcekey="lblAreaIDEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtAreaIDStart" runat="server" CssClass="textbox" 
                                        onblur='Area();' meta:resourcekey="txtAreaIDStart"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img4" runat="server" alt="select one item"
                                        class="img" onclick="selectArea('txtAreaIDStart');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtAreaIDEnd" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtAreaIDEnd"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="img5" runat="server" alt="select one item"
                                        class="img" onclick="selectArea('txtAreaIDEnd');" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chbShowSystemQty" runat="server" CssClass="checkbox" 
                                        Text="显示系统数量" meta:resourcekey="chbShowSystemQty" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chbOnlyNonEmptyLoc" runat="server" CssClass="checkbox" 
                                        Text="仅盘点非空货位" meta:resourcekey="chbOnlyNonEmptyLoc" />
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none; overflow-x:auto; overflow-y: hidden;">
                        <table width="1050px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvPcMainTenanceDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            AllowPaging="True" CssClass="gridview" Width="1050px" OnRowDataBound="gvPcMainTenanceDetail_RowDataBound"
                                            OnPageIndexChanging="gvPcMainTenanceDetail_PageIndexChanging" oninit="gvPcMainTenanceDetail_Init" 
                                            meta:resourcekey="gvPcMainTenanceDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" 
                                                    meta:resourcekey="BoundField">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TAGNO" HeaderText="标签号" FooterText="标签号" 
                                                    SortExpression="TAGNO" meta:resourcekey="TAGNO">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="STATUSD" HeaderText="状态" FooterText="状态" 
                                                    SortExpression="STATUSD" meta:resourcekey="STATUSD">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TEAMNO" HeaderText="队" FooterText="队" 
                                                    SortExpression="TEAMNO" meta:resourcekey="TEAMNO">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="OWNERID" HeaderText="货主代码" FooterText="货主代码" 
                                                    SortExpression="OWNERID" meta:resourcekey="OWNERID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SKUID" HeaderText="货品代码" FooterText="货品代码" 
                                                    SortExpression="SKUID" meta:resourcekey="SKUID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT" HeaderText="批次号" FooterText="批次号" 
                                                    SortExpression="LOT" meta:resourcekey="LOT">
                                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LPNID" HeaderText="LPN" FooterText="LPN" 
                                                    SortExpression="LPNID" meta:resourcekey="LPNID">
                                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOC" HeaderText="货位" FooterText="货位" 
                                                    SortExpression="LOC" meta:resourcekey="LOC">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="系统数量" HeaderText="系统数量" SortExpression="SYSQTY" 
                                                    meta:resourcekey="TemplateField">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSysQty" runat="server" 
                                                            Text='<%# GetPreferenceDigit(Eval("SYSQTY").ToString()) %>' 
                                                            meta:resourcekey="lblSysQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="初盘数量" HeaderText="初盘数量" 
                                                    SortExpression="COUNTQTY" meta:resourcekey="COUNTQTY">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCountQty" runat="server" 
                                                            Text='<%# GetPreferenceDigit(Eval("COUNTQTY").ToString()) %>' 
                                                            meta:resourcekey="lblCountQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="复盘数量" HeaderText="复盘数量" 
                                                    SortExpression="RECOUNTQTY" meta:resourcekey="RECOUNTQTY">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCountQty" runat="server" 
                                                            Text='<%# GetPreferenceDigit(Eval("RECOUNTQTY").ToString()) %>' 
                                                            meta:resourcekey="lblCountQtyResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
                    <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'"  >
                            <td class="line" id="tdlnkbtnPrintPCMaintenance" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnPrintPCMaintenance" runat="server" Text="打印标签列表"  meta:resourcekey="lnkbtnPrintPCMaintenance"
                                    OnClientClick="popPrintPc();" ></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </div>
                 <div id="actionDiv" style="background-color:#FFFFFF; position:absolute;display:none; border:none 0 black">
                 <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line" id="tdlnkbtnPcRequestTasks" runat="server"  visible="False" >
                             <asp:LinkButton ID="lnkbtnPcRequestTasks" runat="server"  Text="任务发放" meta:resourcekey="lnkbtnPcRequestTasks"
                                 OnClick="btnPcRequestTasks_Click" ></asp:LinkButton>
                         </td>                          
                     </tr>
                      <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line" id="tdlnkbtnPcHold" runat="server"  visible="False" >
                             <asp:LinkButton ID="lnkbtnPcHold" runat="server"  Text="冻结库存" meta:resourcekey="lnkbtnPcHold"
                                 OnClick="btnPcHold_Click" ></asp:LinkButton>
                         </td>                          
                     </tr>
                      <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line" id="tdlnkbtnPcOK" runat="server"  visible="False" >
                             <asp:LinkButton ID="lnkbtnPcOK" runat="server"  Text="解除库存冻结" meta:resourcekey="lnkbtnPcOK"
                                 OnClick="btnPcOK_Clikc" ></asp:LinkButton>
                         </td>                          
                     </tr>
                      <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line" id="tdlnkbtnPcDetele" runat="server"  visible="False" >
                             <asp:LinkButton ID="lnkbtnPcDetele" runat="server"  Text="删除盘点" meta:resourcekey="lnkbtnPcDetele" ></asp:LinkButton>
                         </td>                          
                     </tr>
                 </table>
            </div>
                <input type="hidden" id="hiddenReportFlag" />
                <input type="hidden" id="hiddenFlag" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnPrID" runat="server" />
        <input type="hidden" id="hdnTagNo" runat="server" />
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnFlag" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--		
		    hiddenDiv();
		    hiddenReportDiv();
			hiddenCalendarDiv();
		//-->
</script>

